{function name="Category" category="" title="" img=""}
    {*Crea el router*}
    {$router = $Module.context->getRouting()}

    {$key = $Module.appName|cat:"."|cat:$Module.name}
    <li class="i_{$img}">
        <a class="{if array_key_exists($key, $category)}active{/if} ">
            {*<img src="components/com_acaweb/assets/img/icons/small_icons_3/{$img}.png" alt="" />*}
            <span>{$title}</span>
        </a>
        <ul>
            {foreach $category as $item}
            {$call = explode(".", $item@key)}
            <li>
                <a href="{$router->appAction($call[0], $call[1])}">
                    <span>{$item}</span>
                </a>
            </li>
            {/foreach}
        </ul>
    </li>
{/function}

<!-- navigation menu -->
    <ul id="nav">
        <li class="i_house" >
            <a href="index.php?option=com_acaweb" class="{if $Module.name == "FrontPage"}active{/if} ">
                {*<img src="components/com_acaweb/assets/img/icons/small_icons_3/dashboard.png" alt="" />*}
                <span>Mi USB <sup><em>Beta</em></sup></span> 
            </a>
        </li>
        {$menus = $Module.context->getRequest()->getAttribute(MenuPlugin::MENU_TREE)}
        {foreach $menus as $menu}
            {include file="assets::smarty-templates::menus::"|cat:$menu|ToPath}
        {/foreach}
        
        <li class="i_exit">
            <a href="index.php?option=com_user&task=logout&return={base64_encode('index.php')}">
                <span>Salir</span>
            </a>
        </li>
    </ul>
<!-- navigation menu end -->